package xcmg.device.dao.mapper.company;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xcmg.device.dao.entity.company.EmployeeDO;
import xcmg.device.service.vo.company.EmployeeVO;

import java.util.List;

/**
 * 供应商职工表 Mapper
 */
@Mapper
public interface EmployeeMapper {

    List<EmployeeDO> queryList(EmployeeVO condition);

    int insert(EmployeeDO model);

    int merge(EmployeeDO model);

    int updateByPrimaryKeySelective(EmployeeDO bean);

    int deleteByPrimaryKeySelective(String id);

    List<EmployeeDO> queryListByIds(@Param(value = "ids") List<String> ids);

    List<EmployeeVO> queryVoList(EmployeeVO filters);

    List<EmployeeVO> queryCountList(@Param(value = "factoryOrgId")  String factoryOrgId);

    Integer countByJob(@Param(value = "orgId")   String orgId, @Param(value = "jobId")   String jobId);
}
